package com.xomily.devops.agent.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * @version V1.0
 * @ClassName:DevCpuLog.java
 * @author: xomily (2327742507@qq.com)
 * @date: 2021年12月02日
 * @Description: DevCpuLog.java
 * @Copyright: 2021-2022 www.xomily.com. All rights reserved.
 */
public class DevCpuLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 主机IP地址 */
    private String ip;
    
    /** STEAL */
    private Long steal;

    /** NICE */
    private Long nice;

    /** USER */
    private Long user;

    /** SYS指标 */
    private Long sys;

    /** IDLE */
    private Long idle;

    /** IOWAIT */
    private Long iowait;

    /** IRQ */
    private Long irq;

    /** SOFT */
    private Long soft;
    
    /** 使用率 */
    private double useRate;
    
    /** 风扇 */
    private String fan;

    /** 温度 */
    private double temperature;

    /** 发生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date generateTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setSteal(Long  steal) 
    {
        this.steal =  steal;
    }

    public Long getSteal() 
    {
        return  steal;
    }
    public void setNice(Long nice) 
    {
        this.nice = nice;
    }

    public Long getNice() 
    {
        return nice;
    }
    public void setUser(Long user) 
    {
        this.user = user;
    }

    public Long getUser() 
    {
        return user;
    }
    public void setSys(Long sys) 
    {
        this.sys = sys;
    }

    public Long getSys() 
    {
        return sys;
    }
    public void setIdle(Long idle) 
    {
        this.idle = idle;
    }

    public Long getIdle() 
    {
        return idle;
    }
    public void setIowait(Long iowait) 
    {
        this.iowait = iowait;
    }

    public Long getIowait() 
    {
        return iowait;
    }
    public void setIrq(Long irq) 
    {
        this.irq = irq;
    }

    public Long getIrq() 
    {
        return irq;
    }
    public void setSoft(Long soft) 
    {
        this.soft = soft;
    }

    public Long getSoft() 
    {
        return soft;
    }
    
    public void setUseRate(double useRate) 
    {
        this.useRate = useRate;
    }

    public double getUseRate() 
    {
        return useRate;
    }
    
    public void setFan(String fan) 
    {
        this.fan = fan;
    }

    public String getFan() 
    {
        return fan;
    }
    
    public void setTemperature(double temperature) 
    {
        this.temperature = temperature;
    }

    public double getTemperature() 
    {
        return temperature;
    }
    public void setGenerateTime(Date generateTime) 
    {
        this.generateTime = generateTime;
    }

    public Date getGenerateTime() 
    {
        return generateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ip", getIp())
            .append("user", getUser())
            .append("sys", getSys())
            .append("idle", getIdle())
            .append("iowait", getIowait())
            .append("irq", getIrq())
            .append("soft", getSoft())
            .append("fan", getFan())
            .append("temperature", getTemperature())
            .append("createTime", getCreateTime())
            .append("generateTime", getGenerateTime())
            .toString();
    }
}
